package com.cjx.springcloud.controller;

import com.cjx.springcloud.Service.IMessageProvider;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author cjx
 * @date 2021/6/16 0016 - 20:15
 */
@RestController
public class SendMessage {
     @Resource
     private IMessageProvider iMessageProvider;
     @GetMapping("/sendMessage")
     public String sendMessage(){
         return iMessageProvider.send();
     }

}
